package zsc.ruanc.practicaltraining.mapper;

import org.springframework.cache.annotation.Cacheable;
import zsc.ruanc.practicaltraining.model.domain.TUrl;

import java.util.List;

public interface UrlMapper {

    @Cacheable(value = "ROLE_url", key = "#roleId", unless = "#result.size() == 0")
    public List<TUrl> select(int roleId);

    public List<TUrl> selectAll();

}
